package com.imooc.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.imooc.demo.enums.OrderStatusEnum;
import com.imooc.demo.enums.PayStatusEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;

@Data

public class Order {
   private String orderId;
   private  String serviceTime;
   //private String buyerOpenid;
   private int addressId;
   private BigDecimal orderAmount;
   private Integer orderStatus =OrderStatusEnum.NEW.getCode();
   private Integer payStatus = PayStatusEnum.WAIT.getCode();
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date createTime1;
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date  updateTime1;

   private String orderRemark;
   private  Integer workerId;

   private  String workerRemark;
   private Integer read;
   private Integer sequenceId;
   private String picture;
   private BigDecimal pingFen;
   //关系
   private Set<OrderDetail> orderDetails ;
   private Worker worker;
   private UserInfo userInfo;
   private UserAddressinfo userAddressinfo;



}
